import {Breadcrumb} from "antd";
import React from "react";


export  default class BreadcrumbComponent extends React.Component {
    state = {

    };
    render() {

        return (<><Breadcrumb>
            {(this.props.items||[]).map(item=>{
                if(undefined==item.url){
                    return [<Breadcrumb.Item>{item.title}</Breadcrumb.Item>]
                }else{
                    return [<Breadcrumb.Item><a href={item.url}>{item.title}</a></Breadcrumb.Item>]
                }

            })}
        </Breadcrumb></>)
    }

}